<template>
	<view class="mainBox" style="display: flex; flex-direction:column; ">
		<view class="lottery-result__more">
			<text class="msg">
				恭喜您入驻申请成功
			</text>
			<br/>
			<text class="msg1">
				我们将尽快进行审核
			</text>
			<button class="button1" @click="gotoJinJian">点击填写商家进件资料</button>
			<button class="button2" @click="onGo">返回首页</button>
		</view>
	</view>
</template>

<script>
	import {
		setJoinMsg,
		getFranchiseFee,
		getPersonalCenter,
	} from "../../api/index.js"
	import { hex_md5 } from "../../utils/md5.js";
	export default {
		data() {
			return {
				image: "",
				current: null,
				content: '',
				nid: '',
			}
		},
		onLoad() {},
		methods: {
			async gotoJinJian(){
				const res = await getPersonalCenter('s=/ApiZwyRequest/userinfo')
				const {
					data,
					status,
					msg
				} = res.data
				var tel = '16e5e781970fd16d' + data.tel
				var url = encodeURIComponent(`${getApp().globalData.BASE_URL}/?s=/ApiUpload/sybmercinfo&mobile=${data.tel}&token=${hex_md5(tel)}`)
				this.onSkip(
					`/business/pages/business_tab/web?url=${url}`
				)
			},
			onGo() {
				uni.switchTab({
					url: getApp().globalData.HOME_PAGE
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.mainBox {
		height: 100vh;
	}

	.lottery-result__more {
		padding: 100px 40px;
		text-align: center;
		.msg {
			margin-top: 100px;
			text-align: center;
			font-size: 25px;
		}
		.msg1 {
			margin-top: 20px;
			text-align: center;
			font-size: 25px;
		}
		.button1 {
			margin-top: 50px;
			width: 90%;
			height: 60px;
			line-height: 60px;
			border: 0;
			border-radius: 6px;
			background: #42e96e;
			color: #ffffff;
		}

		.button2 {
			margin-top: 40px;
			width: 80%;
			height: 50px;
			line-height: 50px;
			border: 0;
			border-radius: 6px;
			background: #42e96e;
			color: #ffffff;
		}
	}

	image {
		width: 100%;
		height: 120vh;
	}
</style>